﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Content.master" AutoEventWireup="true"
    CodeFile="Hours_view.aspx.cs" Inherits="Hours_view" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">
 $(function() {
          $("#<%= HRS_PAYDAY.ClientID %>").datepicker({ dateFormat: "dd-mm-yy" });
          $("#<%= HRS_DATE.ClientID %>").datepicker({ dateFormat: "dd-mm-yy" });
 });
<!--
function isNumberKey(evt)
{
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57))
    return false;

    return true;
}
//-->
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="divPages">
        <img src="images/Hours.png" title="Create Hours for your personal" alt="Create Hours"
            id="img" /><div id="PagesHeaderText">
                Hours
                <asp:Literal ID="HRSTitle" runat="server" /></div>
        <div class="divPagesInner">
            <div class="divColumns">
                <asp:Label CssClass="lbl" runat="server" AssociatedControlID="HRS_COMPANYNAME" Text="Company : <em>*</em>" />
                <asp:TextBox ID="HRS_COMPANYNAME" runat="server" CssClass="Company Details" />
            </div>
            <div class="divColumns">
                <asp:Label CssClass="lbl" runat="server" AssociatedControlID="HRS_DATE" Text="Date :" />
                <asp:TextBox ID="HRS_DATE" runat="server" CssClass="Details" />
            </div>
            <div class="divColumns">
                <asp:Label CssClass="lbl" runat="server" AssociatedControlID="HRS_WORKDAY" Text="Work day :" />
                <asp:DropDownList Id="HRS_WORKDAY" runat="server" CssClass="WorkDay Details">
                <asp:ListItem Value="1" Text="Monday"></asp:ListItem>
                <asp:ListItem Value="2" Text="Tuesday"></asp:ListItem>
                <asp:ListItem Value="3" Text="Wednesday"></asp:ListItem>
                <asp:ListItem Value="4" Text="Thursday"></asp:ListItem>
                <asp:ListItem Value="5" Text="Friday"></asp:ListItem>
                <asp:ListItem Value="6" Text="Saturday"></asp:ListItem>
                <asp:ListItem Value="7" Text="Sunday"></asp:ListItem>
	            </asp:DropDownList>
            </div>
            <div class="divColumns">
                <asp:Label CssClass="lbl" runat="server" AssociatedControlID="HRS_PAYDAY" Text="Pay day :" />
                <asp:TextBox ID="HRS_PAYDAY" MaxLength="100" runat="server" CssClass="PayDay Details" />
            </div>
            <div class="divColumns">
                <asp:Label CssClass="lbl" runat="server" AssociatedControlID="HRS_HOURS" Text="Hours :" />
                <asp:TextBox ID="HRS_HOURS" onkeypress="return isNumberKey(event)" MaxLength="100"
                    runat="server" CssClass="Hours Details" />
            </div>
            <div class="divColumns">
                <CKEditor:CKEditorControl Toolbar="Basic" AutoUpdateElement="true" AutoParagraph="false"
                    EnableTabKeyTools="true" ToolbarCanCollapse="true" DefaultLanguage="EN" ID="HRS_COMMENTS"
                    CssClass="CkEditor" runat="server"></CKEditor:CKEditorControl>
            </div>
        </div>
        <div style="margin-top:10px;" class="divButton">
            <asp:Button ID="BtnSave" UseSubmitBehavior="false" type="submit" data-role="button"
                CssClass="Button" runat="server" Text="Save" OnClick="BtnSubmit_Click" />
            <asp:Button ID="BtnCancel" UseSubmitBehavior="false" type="submit" data-role="button"
                CssClass="Button" runat="server" Text="Cancel" OnClick="BtnCancel_Click" />
        </div>
    </div>
</asp:Content>
